<li class="list-group-item d-flex justify-content-between align-items-center">
    <div>
        <img src="{$user->avatar}" alt="{$user->name}" width="64" class="img-thumbnail" />
        <a class="text-decoration-none text-success" href="{:url('User/read',['id'=>$user->id])}">{$user->name}</a>
        <i class="fa fa-rss-square text-danger"></i>
        <span class="text-secondary">{$user->email}</span>
    </div>
    <?php if(isLogin()):?>
        <?php $login_user = loginUser();?>
        <?php if(isAdmin() && ($login_user->id != $user->id) && ($user->is_admin != 1)):?>
            <form action="{:url('User/delete',['id'=>$user->id])}" method="post" class="text-center"
                  onsubmit="return confirm('您是否真的要删除该用户?')"
            >
                <input type="hidden" name="_method" value="DELETE" />
                <input type="hidden" name="__token__" value="{:token()}" />
            </form>
        <?php endif;?>
    <?php endif;?>
</li>